﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using Clipping.Infrastructure.Models;
namespace ClippingMaster
{
    public class KeywordCategoryModel : GalaSoft.MvvmLight.ObservableObject
    {

        public KeywordCategoryModel()
        {
            SubCategoriesAndKeywords = new ObservableCollection<object>();
        }


        #region 属性

        private KeywordCategory _category;
        public KeywordCategory Category
        {
            get { return _category; }
            set
            {
                _category = value;
                RaisePropertyChanged(() => this.Category);
            }
        }

        
        private ObservableCollection<object> _subCategoriesAndKeywords;

        public ObservableCollection<object> SubCategoriesAndKeywords
        {
            get { return _subCategoriesAndKeywords; }
            set 
            { _subCategoriesAndKeywords = value; }
        }


        public KeywordCategoryModel ParentCategory { get; set; }
        #endregion
    }
}
